import {createRouter, createWebHistory} from "vue-router";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            //首页
            path: '/',
            name: 'home',
            component: () => import('../view/HomePage/Home'),
            meta: {
                index: 0,
            },

        },
        {
            //每日推荐
            path: '/Goods',
            name: 'GoodsSong',
            component: () => import('../view/NoBreak/Goods'),
            meta: {
                index: 1,
            },

        },
        //歌单
        {
            path: '/PlayList',
            name:'PlayList',
            component:()=>import('../view/SongListDetails/SongListDetails'),
            meta: {
                index: 1,
            },
        },
        //歌曲播放页
        {
            path:'/SongPlay',
            name:'SongPlay',
            component:()=>import('@/view/SongsPage/SongsPage.vue')
        }
    ]
})
export default router